<template>
  <div class="v-center-line">
    <div class="title">{{ title }}</div>
  </div>
</template>
<script>
export default {
  name: "vcenterline",
  data() {
    return {};
  },
  props: {
    title: {
      type: String,
      default: "标题",
      required: true
    }
  },
  methods: {}
};
</script>
<style lang='less' scoped>
.title {
  color: white;
  text-align: center;
  position: relative;
  font-size: 0.36rem;
  line-height: 0.4rem;
  &::before {
    content: "";
    position: absolute;
    left: 10%;
    top: 0.2rem;
    width: 25%;
    height: 1px;
    background: white;
  }
  &::after {
    content: "";
    position: absolute;
    right: 10%;
    top: 0.2rem;
    width: 25%;
    height: 1px;
    background: white;
  }
}
</style>